/*
 * @Author       : xiangmin
 * @File         : input聚焦
 * @Date         : 2023-10-12 13:56:06
 * @LastEditors  : xiangmin
 * @LastEditTime : 2023-10-12 13:59:25
 */

import type { ObjectDirective } from 'vue'

const focus: ObjectDirective<HTMLElement> = {
	mounted(element) {
		element.focus()
	}
}

export default focus
